﻿
@{
    var sController = HttpContext.Current.Request.RequestContext.RouteData.Values["controller"].ToString().ToLower();
    var sLayout = "~/Views/Shared/_Layout.cshtml";

    if (sController == "admin")
    {
        sLayout = "~/Views/Shared/_adminLayout.cshtml";
    }
    else if (sController == "book" || sController == "music" || sController == "autofetch")
    {
        sLayout = "~/Views/Shared/book.cshtml";
    }
    else if (sController == "joke" )
    {
        sLayout = "~/Views/Shared/joke.cshtml";
    }
    else if (sController == "face")
    {
        sLayout = "~/Views/Shared/face.cshtml";
    }

    Layout = sLayout;    
    
}